import Cookies from 'js-cookie'

const info = 'vue_admin_template_token'

export function getUser() {
  return sessionStorage.getItem("User");
}
export function getRole() {
  return sessionStorage.getItem("Role");
}
export function getStore() {
  return sessionStorage.getItem("Store");
}
export function setUser(info) {
  return sessionStorage.setItem('User',info);
}
export function setRole(info) {
  return sessionStorage.setItem('Role',info);
}
export function setStore(info) {
  return sessionStorage.setItem('Store',info);
}

export function removeInfo() {
  return window.sessionStorage.clear();

}
